package com.hanthink.web.controller.app.repair;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hanthink.common.constant.HttpStatus;
import com.hanthink.common.core.controller.BaseController;
import com.hanthink.common.core.page.TableDataInfo;
import com.hanthink.system.domain.repair.RepairRecordTime;
import com.hanthink.system.service.repair.IRepairRecordTimeService;

@RestController
@RequestMapping("/app/repair/repairRecordTime")
public class RepairRecordTimeControll extends BaseController{

	@Autowired
	private IRepairRecordTimeService repairRecordTimeService;
	
	/**
	 * 更新维修时间
	 * 
	 * @param siteKey
	 * @return
	 */
	@PostMapping("/updateRecordTime")
	public TableDataInfo updateRequest(@RequestBody RepairRecordTime repairRecordTime) {
		repairRecordTimeService.updateRecordTime(repairRecordTime);
		TableDataInfo rspData = new TableDataInfo();
        rspData.setCode(HttpStatus.SUCCESS);
        rspData.setMsg("操作成功");
        return rspData;
	}
	
	
}
